{% extends "../base.html"%} {% block header_title %}后台管理首页{% end %} {% block static_css %}
<link rel="stylesheet" href="{{ static_url('auth/css/signin.css') }}" />{% end%} {% block body %}
<div class="container" id="login">
    <div class="row">
        <div class="auth-box">
            <h2 class="text-center">注册</h2>
            <div class="alert alert-danger {%if error==None%}invisible{%end%}" role="alert">{{error}}</div>
            <form action="/auth/signup" method="post" id="signupForm">
                <div class="form-group control-group">
                    <div class="controls">
                        <input class="form-control" id="username" name="username" placeholder="用户名或邮箱" type="text" value="">
                    </div>
                </div>
                <div class="form-group control-group">
                    <div class="controls">
                        <input autocomplete="off" class="form-control" id="password" name="password" placeholder="注册密码" type="password" value="">
                    </div>
                </div>
                <div class="form-group control-group">
                    <div class="controls">
                        <input autocomplete="off" class="form-control" id="repassword" name="repassword" placeholder="重输密码" type="password" value="">
                    </div>
                </div>
                <div class="form-group">
                    <button type="submit" class="btn btn-large btn-success" name="login">注册</button>
                    {% raw xsrf_form_html() %}
                </div>
                <div class="form-group">
                    <a class="form-control-static" href="/auth/signin">
                        返回登陆
                    </a>
                    <a class="form-control-static" href="/">
                        返回首页
                    </a>
                </div>
            </form>
        </div>
    </div>
</div>
{% end %}{% block static_js %}
<script src="{{ static_url('assets/js/jquery.validation.min.js') }}"></script>
<script src="{{ static_url('auth/js/signup.js') }}"></script>
{% end %}
